<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<title>用户详情</title>
</head>
<body>
	<jsp:include page="navigation.jsp"></jsp:include>
	<div class="container" style="margin-left: 190px;">
		<div class="topbar-inner">
			<div class="myhead">
				<span class="crumb-name">用户详情</span>
			</div>
		</div>
		<div class="topbar-inner">
			<div class="search">
				<button type="button" id="search_btn" onclick="toMomentInfo(${obj.id})"
					class="btn btn-default" style="margin-left: 20px; margin-top: 1px;">他/她发布的动态</button>
<%-- 				<button type="button" id="search_btn" onclick="toEventInfo(${obj.id})" --%>
<!-- 					class="btn btn-default" style="margin-left: 20px; margin-top: 1px;">他/她发起的活动</button> -->
				<button type="button" id="search_btn" onclick="toCommentInfo(${obj.id})"
					class="btn btn-default" style="margin-left: 20px; margin-top: 1px;">他/她发出的评论</button>
				<button type="button" id="search_btn" onclick="goback()"
					class="btn btn-default" style="margin-left: 20px; margin-top: 1px;">返回</button>	
			</div>
		</div>


		<div style="margin: 20px 20px 20px 20px; text-align: center;">
			<table class="table table-bordered">
				<tbody>
					<tr>
						<td width="180px"><span style="float: right">用户名：</span></td>
						<td><div style="float: left">
								<span>${ obj.user_name }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">真实姓名：</span></td>
						<td><div style="float: left">
								<span>${ obj.real_name }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">称谓：</span></td>
						<td><div style="float: left">
								<span>${ obj.appellation }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">手机号：</span></td>
						<td><div style="float: left">
								<span>${ obj.mobile }</span>
							</div></td>
					</tr>
					<tr>
						<td width="180px"><span style="float: right">头像：</span></td>
						<td><div style="float: left">
								<c:if test="${ obj.portrait != null && obj.portrait != '' }">
									<img src="http://139.196.188.251:8080/upload/cache/${ obj.portrait }" width=100px />
								</c:if>
								<c:if test="${ obj.portrait == null || obj.portrait == '' }">
									<img src="images/defalut.png" width=100px />
								</c:if>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">身高：</span></td>
						<td><div style="float: left">
								<span>${ obj.height }cm</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">等级：</span></td>
						<td><div style="float: left">
								<span>${ obj.level }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">经验值：</span></td>
						<td><div style="float: left">
								<span>${ obj.exp }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">爱币：</span></td>
						<td><div style="float: left">
								<span>${ obj.point }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">称谓：</span></td>
						<td><div style="float: left">
								<span>${ obj.appellation }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">身份证：</span></td>
						<td><div style="float: left">
								<span>${ obj.idcard }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">生日：</span></td>
						<td><div style="float: left">
								<span>${ obj.birthday }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">年龄：</span></td>
						<td><div style="float: left">
								<span>${ obj.age }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">收入：</span></td>
						<td><div style="float: left">
								<span>${ obj.income }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">所在地：</span></td>
						<td><div style="float: left">
								<span>${ obj.location }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">性别：</span></td>
						<td><div style="float: left">
								<span>${ obj.gender }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">喜欢的活动：</span></td>
						<td><div style="float: left">
								<span>${ obj.love_activity }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">擅长：</span></td>
						<td><div style="float: left">
								<span>${ obj.adepthings }</span>
							</div></td>
					</tr>
					<tr>
						<td><span style="float: right">兴趣爱好：</span></td>
						<td><div style="float: left">
								<span>${ obj.hobbies }</span>
							</div></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<script>
		function goback() {
			window.location.href = 'userinfo';
		}
		
		function toMomentInfo(userid) {
			window.location.href = 'usermomentinfo?userid=' + userid;
		}
		function toEventInfo(userid) {
			window.location.href = 'usereventinfo?userid=' + userid;
		}
		function toCommentInfo(userid) {
			window.location.href = 'usercommentinfo?userid=' + userid;
		}
	</script>
</body>
</html>